home *** CD-ROM | disk | FTP | other *** search
- Path: sanjose.vlsi.com!msn!markj
- From: markj@msn.ustc.vlsi.com (Mark Johnson)
- Newsgroups: gnu.gcc,gnu.g++,comp.sys.hp.hpux,gnu.gcc.help,comp.lang.c
- Subject: Why can't gcc find some object files in archive libraries?
- Date: 10 Apr 1996 15:24:10 -0500
- Organization: VLSI Technology, Inc. (San Jose)
- Message-ID: <markj.829166983@msn>
- NNTP-Posting-Host: msn.ustc.vlsi.com
- Keywords: gcc,g++,hpux
-
- I've been trying to figure out why while running g++ on hpux 9.05, for
- certain sources, the linker misses the object file. I've noticed this
- with several *.o files in archived libraries. But I've done a number
- of test cases and I'm sure that the linker is just overlooking the
- object file for some unknown reason.
-
- One of the object files is xmalloc.o in the libiberty.a library. If I
- extract xmalloc.o from the library and put it in the object list
- everything compiles fine. But if I don't put the actual *.o file on
- the object list the linker won't find it. If I explicitely put the
- library on my path it still won't find it. If I take the *.o file and
- make a new archive library with some bogus name it still won't find
- it. I've put another *.o file in the library just to make sure that
- the linker is reading the library. It is.
-
- Anyway, I'm at a lose for an explaination. Anyone got an idea
- what's wrong?
-
- Mark
- mark.johnson@vlsi.com
-